<link href="<?php echo URLPRE;?>static/admin/css/admin_full.css" rel="stylesheet" />
<link href="<?php echo URLPRE;?>static/public/Lib/artDialog/skins/default.css" rel="stylesheet" />
<link href="<?php echo URLPRE;?>static/public/Lib/Kalendajs/build/kalendae.css" rel="stylesheet" />
<link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
<link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.validate.1.9.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.metadata.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/messages_cn.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/jquery.artDialog.source.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/admin/js/common.js?newversion"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/Kalendajs/build/kalendae.standalone.js"></script>

<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/select2/select2.min.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/select2/select2_locale_zh-CN.js"></script>
<link href="<?php echo URLPRE;?>static/public/Lib/select2/select2.css" rel="stylesheet" />
<link href="<?php echo URLPRE;?>static/public/Lib/select2/select2-bootstrap.css" rel="stylesheet" />
<link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
<style>.form-group{margin-bottom:0}</style>
<div>
    <div class="h_a">说明</div>
    <div class="prompt_text">
        <ul>
            <li>默认分组是改不了的</li>
        </ul>
    </div>
    <div class="nav">
        <ul>
            <li><a href="<?php echo site_url('weixin/wfans/index');?>">粉丝管理</a></li>
            <li class="current"><a href="<?php echo site_url('weixin/wfans/group');?>">分组管理</a></li>
        </ul>
    </div>
    <div class="table_list">
        <form class="formvalidate" action="" method="post">
        <table width="100%">
            <thead>
            <tr>
                <td>ID</td>
                <td>分组名称</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody>
            <?php foreach ($groups as $v) { ?>
            <tr>
                <td>
                    <?php echo $v['id']?>
                </td>
                <td><?php if($v['id']>=100){?><input name="group[<?php echo $v['id']?>]" value="<?php echo $v['name'];?>" class="form-control"><?php }else{echo $v['name'];}?></td>
                <td>
                    <?php if($v['id']>=100){?><a class='icon-remove-2 doDel' href='javascript:;' data-uri='<?php echo site_url('weixin/wfans/group?delid='. $v['id'])?>'>&nbsp;删除</a><?php }else{echo '&nbsp;';}?>
                </td>
            </tr>
            <?php }?>
            </tbody>
            <tbody>
                <tr>
                    <td>&nbsp;</td>
                    <td><input name="newgroup" value="" class="form-control"></td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td><td colspan="2">
                        <div class="form-group">
                            <button class="btn1 btn-secondary btn-single" type="submit">保存</button>
                        </div>
                    </td></tr>
            </tbody>
            </table>
        </form>
    </div>
</div>